home *** CD-ROM | disk | FTP | other *** search
- set time 0
- set duration [expr {1./60}]
-
- set grid(width) 8
- set grid(depth) 3.84
-
- set text(color) "1 1 1"
- set text(fontName) Helvetica
- set text(size) 18
- set text(color) "1 1 1"
- set text(fontName) Helvetica
- set text(size) 18
-
- set dataSlice(height) 2.56
- animatable: {set dataSlice(depth) $grid(depth)}
- set dataSlice(yRotate) 180
- set dataSlice(zRotate) 270
- animatable: {set dataSlice(origin) [expr {-1 * $time}]}
- animatable: {set dataSlice(xTranslate) [expr {-1 * $dataSlice(height)}]}
- set dataSlice(yTranslate) 0
- animatable: {set dataSlice(zTranslate) [expr {-1 * $dataSlice(depth)}]}
-
- proc drawGrid {w d f s c} {
-
- Surface paintedplastic texturename grid.tx
- Patch bilinear P "0 0 0 \
- 0 0 $d \
- $w 0 0 \
- $w 0 $d"
- ShadingRate 1000.
- Surface constant
- Color $c
- for {set i 0} {$i < $w} {incr i} \
- { ArchiveRecord comment "tick $i"
- WW3DText $f $s $i left ;
- for {set j 1} {$j < 10} {incr j} \
- { Translate .1 0 0;
- ArchiveRecord comment "tick $i.$j"
- WW3DText $f [expr {.15 * $s}] $j left;
- }
- Translate .1 0 0;
- }
- ArchiveRecord comment "tick $i"
- WW3DText $f $s $i left;
- }
-
- proc drawDataSlice {f s w clr yR zR xT yT zT d h dur yO time} {
-
- AttributeBegin
- ShadingRate 1000.
- Surface constant
- Color 1 1 1
- Rotate 90 0 1 0
- Translate [expr {-1 * $d}] 0 0
- for {set i 0} {$i < $w} {incr i} \
- { WW3DText $f $s $i left;
- for {set j 1} {$j < 10} {incr j} \
- { Translate 0 0 .1;
- ArchiveRecord comment "tick $i.$j"
- WW3DText $f [expr {.15 * $s}] $j left;
- }
- Translate 0 0 .1;
- }
- ArchiveRecord comment "tick $i"
- WW3DText $f $s $i left;
- AttributeEnd
- Declare mapname string
- Surface WWAlphaPaintedPlastic mapname dataSlice.tx
- Color $clr
- TransformBegin
- Rotate $yR 0 1 0
- Rotate $zR 0 0 1
- Translate $xT $yT $zT
- Translate 0 $yO 0
- Patch bilinear P "0 0 0 \
- 0 0 $d \
- $h 0 0 \
- $h 0 $d"
- Translate 0 [expr {-1 * $dur}] 0
- #Surface paintedplastic texturename grid.tx
- Patch bilinear P "0 0 0 \
- 0 0 $d \
- $h 0 0 \
- $h 0 $d"
- TransformEnd
- Color .7 .7 .7
- Surface screen
- Translate $time 0 0
- Patch bilinear P "0 0 0 \
- 0 $h 0 \
- $dur 0 0 \
- $dur $h 0"
- Patch bilinear P "0 $h 0 \
- 0 $h $d \
- $dur $h 0 \
- $dur $h $d"
- Patch bilinear P "0 0 $d \
- 0 $h $d \
- $dur 0 $d \
- $dur $h $d"
- }
-
-
-
- loadControlPanel controls.nib
-
- startShape DataSpace
- #Atmosphere fog
- startShape Grid
- animatable: {drawGrid $grid(width) $grid(depth) $text(fontName) $text(size) "$text(color)"}
- endShape
- startShape dataSlice
- animatable: {drawDataSlice $text(fontName) $text(size) $grid(width) $text(color) \
- $dataSlice(yRotate) $dataSlice(zRotate) \
- $dataSlice(xTranslate) $dataSlice(yTranslate) $dataSlice(zTranslate) \
- $grid(depth) $dataSlice(height) $duration $dataSlice(origin) $time}
- endShape
- endShape
-